import { apiConfig, customApiConfig } from "@/config/apiConfig";
import { service, customService } from "@/config/request";

/**
 * 专家相关接口
 */
const professor = {
  /**
   * 通过名称查询专家列表
   * @param {object} data
   * @param {string} data.name 专家名称
   * @param {number} data.pageNum 当前页数
   * @param {number} data.pageSize 每页条数
   * @returns 
   */
  getProfessorNameList: (data) => customService.post(customApiConfig.professor.getProfessorNameList, data),
  /**
   * 通过名称查询简化专家列表
   * @param {object} data
   * @param {string} data.name 专家名称
   * @param {number} data.pageNum 当前页数
   * @param {number} data.pageSize 每页条数
   * @returns 
   */
  getSimpleProfessorNameList: (data) => customService.post(customApiConfig.professor.getProfessorNameListSimple, data),
  /**
   * 专家权限确认
   * @param {object} data 
   * @param {string} data.phone 专家手机号
   * @returns 
   */
  getPermissionConfirm: (data) => service.post(apiConfig.professor.getPermissionConfirm, data),
  /**
   * 获取前三的专家列表
   * @returns 
   */
  getProfessorTop3List: () => customService.post(customApiConfig.professor.getProfessorTopList, { topNum: 3 }),
  /**
   * 获取前十的专家列表
   * @returns 
   */
  getProfessorTop10List: () => customService.post(customApiConfig.professor.getProfessorTopList, { topNum: 10 }),

};

export default professor;
